<?php
namespace Home\Model;
use Think\Model;
    class GoodsAttrModel extends Model {
      public function getData($cid,$gid)
     {
          $sql="SELECT c.gname,a.aname,b.avalue
                FROM itcast_attribute a, itcast_goods_attr b, itcast_goods c
                WHERE a.aid = b.aid
                AND c.gid = b.gid
                and a.cid =$cid and c.gid=$gid";
          $data=$this->query($sql);
          return $data;

      }
   
    }

